import { createApp } from 'vue';
import { createPinia } from 'pinia';
import 'animate.css';
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';
import App from './App.vue';
import 'normalize.css'; // normalize.css` 使浏览器呈现所有标签样式更加一致，符合现代标准。
import '@/assets/styles/common.less'; //导入公共样式

import XtxUI from '@/components/index';
import { MyUI } from '@/components/index';

// 导入路由
import router from './router';
// console.log('router', router);

const app = createApp(App);
app.use(XtxUI);
app.use(MyUI);
app.use(router);
const pinia = createPinia();
// pinia本地化存储
pinia.use(piniaPluginPersistedstate);
app.use(pinia);
app.mount('#app');
